package main

import (
	"code.google.com/p/feedgraph/graph/backup"
	"encoding/csv"
	"os"
	"time"
)

func main () {

	stamp := time.Now().Format(time.Stamp)

	file, err := os.Create("data/" + stamp + ".csv")

	if err != nil {
		panic(err)
	}	

	w := csv.NewWriter(file)

	bu := backup.New()

	bu.RecordAll()

	bu.Write(w)
}
